package com.play.mapper;

import com.play.model.ArticleDeatil;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Created by Administrator on 2018/8/4.
 */
@Repository
public interface ArticleDetailMapper {
    @Insert("insert into articledetail (adid,addetail) values (#{adid},#{addetail})")
    Integer insert(@Param("adid") Integer aid, @Param("addetail") String detail);

    @Select("select * from articledetail where adid = #{adid}")
    ArticleDeatil selectByAid(@Param("adid") Integer adid);
}
